home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / control / source < prev    next >
Encoding:
Text File  |  1993-10-26  |  834 b   |  21 lines  |  [TEXT/$Tcl]

  1.  
  2.           source fileName
  3.  
  4.  
  5.      DESCRIPTION
  6.           Read file fileName and pass the contents to the  Tcl  inter-
  7.           preter  as  a script to evaluate in the normal fashion.  The
  8.           return value from source is the return  value  of  the  last
  9.           command  executed  from  the  file.   If  an error occurs in
  10.           evaluating the contents of the file then the source  command
  11.           will return that error.  If a return command is invoked from
  12.           within the file then the  remainder  of  the  file  will  be
  13.           skipped and the source command will return normally with the
  14.           result from the return command.  If fileName starts  with  a
  15.           tilde,  then  it  is  tilde-substituted  as described in the
  16.           Tcl_TildeSubst manual entry.
  17.  
  18.  
  19.      KEYWORDS
  20.           file, script
  21.